<style>
    .upload-img-box .upload-pre-item img {
        width: 100px;
    }
    .upload-img-box .upload-pre-item .del_btn {
        width: 100px;
        position: absolute;
        color: #fff;
        margin-top: -30px;
        height: 30px;
        line-height: 30px;
        cursor: pointer;
    }
    .upload-img-box .upload-pre-item .opacity {
        filter: alpha(opacity=50);
        -moz-opacity: 0.5;
        -khtml-opacity: 0.5;
        background: #000;
        opacity: 0.5;
    }
    .multiImage .upload-img-box .upload-pre-item .each {
        display: inline-block;
        margin-right: 5px;
        margin-bottom: 5px;
    }
    .multiImage .upload-img-box .upload-pre-item img {
        width: 100px;
        height: 100px;
    }
    .multiImage .upload-img-box .upload-pre-item .del_btn {
        width: 100px;
        position: absolute;
        color: #fff;
        margin-top: -30px;
        height: 30px;
        line-height: 30px;
        cursor: pointer;
    }
    .multiImage .upload-img-box .upload-pre-item .opacity {
        filter: alpha(opacity=50);
        -moz-opacity: 0.5;
        -khtml-opacity: 0.5;
        background: #000;
        opacity: 0.5;
    }
</style>
<script>
    $(function(){
        $('#form').append('<input name="cover" id="input_cover" type="hidden" value="{$data['cover']}">');
    })
    imageUpload = {
        callback:function(){
            $("#input_cover").val($('#web_uploader_wrapper_cover').next().val());
        },
        removeCallback:function(){
            $("#input_cover").val($('#web_uploader_wrapper_cover').next().val());
        }
    }
</script>
<div class="col-md-offset-1 col-md-11">
    <div class="clearfix">
        <div class="col-xs-1">
            商品封面
        </div>
        <div class="col-xs-8" style="padding-left: 25px">
            {:W('Common/UploadMultiImage/render',array(array('id'=>'cover','limit'=>5,'config'=>array('text'=>'请选择封面'),'value'=>$data['cover'])))}
            <br/>
            第一张为主图
        </div>
    </div>